<template>
  <div class="recommend">
    <div v-for="item in recommends" :key="item.sort" class="recommend-item">
      <a :href="item.link">
        <img :src="item.image" alt="" />
        <h4>{{ item.title }}</h4>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    recommends: {
      type: Array,
    },
  },
};
</script>

<style lang="less" scoped>
.recommend {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-around;
  text-align: center;
  padding: 10px 0 30px;
  border-bottom: 10px solid #f6f6f6;
  .recommend-item {
    flex: 1;
    img {
      width: 67.5px;
    }
  }
}
</style>
